Carbon


FSGetForkPosition

Header: Files.h Carbon status: Supported

Returns the current position of the specified open fork.

OSErr FSGetForkPosition (
    SInt16 forkRefNum, 
    SInt64 *position
);
forkRefNum

The reference number of the fork whose position you wish to obtain.

position

On return, a pointer to the current position of the fork. The returned fork position is relative to the start of the fork (that is, is an absolute offset in bytes).

function result

A result code.

AVAILABILITY

Supported in Carbon. Available in Mac OS 9, and later when Carbon 1.0.2 or later is present.


© 2000 Apple Computer, Inc. — (Last Updated 5/8/2000)